package stc.skymobi.netty.handler.codec.memcached.bean.response;

import stc.skymobi.bean.bytebean.annotation.ByteField;

public class RetrievalResponse extends BinaryResponseHeader{
    @ByteField(index = 9,description = "")
    private int flags;

    @ByteField(index = 10,description = "key",charset = "UTF-8",length = "keyLength")
    private String key;

    @ByteField(index = 11,description = "value",charset = "UTF-8")
    private String value;

    public int getFlags() {
        return flags;
    }

    public void setFlags(int flags) {
        this.flags = flags;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "RetrievalResponse{" +
                "flags=" + flags +
                ", key='" + key + '\'' +
                ", value='" + value + '\'' +
                "} " + super.toString();
    }
}
